package cn.tedu.spring.auto;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TextUserCache {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext
                ("cn.tedu.spring.auto");
        UserCache userCache = ctx.getBean(UserCache.class);
        System.out.println("userCache="+userCache);
    }
}
